ImageStorage.setPixel

Sets a pixel given the position.

  1. void setPixel(size_t x, size_t y, Color value)
  2. void setPixel(size_t x, size_t y, Color value)
    interface ImageStorage(Color)
    @nogc @safe shared
    void
    setPixel
    (
    size_t x
    ,
    size_t y
    ,
    Color value
    )
    if (
    isColor!Color
    )
  3. size_t width [@property getter]
  4. size_t width [@property getter]

Parameters

x size_t

X position in image

y size_t

Y position in image

value Color

The color to assign to the pixel

Throws

If x or y coordinate is outside of the image boundries.

Meta